package com.duobaoyu.dby.supply.common.biz.remote.to.order;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


/**
 * @author fengshaoyu
 * @version 1.0.0
 * <p>返回订单数据</p>
 * @date 2022/5/28 15:54
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderTO implements Serializable {

	private static final long serialVersionUID = 4146448987912151116L;

	/**
	 * 是否成功
	 */
	private Boolean success;
	/**
	 * 异常商品信息
	 */
	private List<ErrorSkuInfo> errorSkuInfoList;
	/**
	 * 订单信息
	 */
	private String bizTradeSn;
	/**
	 * 供应链交易号
	 */
	private String supplyTradeSn;

	@Data
	@Builder
	@AllArgsConstructor
	@NoArgsConstructor
	public static class ErrorSkuInfo {
		/**
		 * 错误商品信息
		 */
		private String skuCode;
		/**
		 * 错误异常码
		 */
		private Integer state;
		/**
		 * 错误商品说明
		 */
		private String message;
	}
}
